package cn.laixueit.service.impl;

import cn.laixueit.mapper.BanjiMapper;
import cn.laixueit.pojo.Banji;
import cn.laixueit.pojo.BanjiExample;
import cn.laixueit.service.BanjiService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BanjiServiceImpl implements BanjiService {


    @Autowired
    private BanjiMapper banjiMapper;

    @Override
    public List<Banji> all() {
        BanjiExample example = new BanjiExample();
        example.createCriteria().andIscloseEqualTo(0);
        List<Banji> banjiList = banjiMapper.selectByExample(example);
        return banjiList;
    }

    @Override
    public PageInfo<Banji> list(Integer startpage, Integer pagesize, String name) {
        return null;
    }

    @Override
    public void save(Banji student) {

    }

    @Override
    public void del(Integer id) {

    }

    @Override
    public Banji findBanjiById(Integer id) {
        return null;
    }

    @Override
    public void update(Banji student) {

    }
}
